package com.wangxl.springbootdemocore.enums;

import lombok.Getter;

/**
 * @ClassName: ResultEnum
 * @Description:
 * @Author : Wangxl
 * @Email：475524154@qq.com
 * @Date: 2018/12/9 13:35
 * @Version:1.0
 **/
@Getter
public enum  ResultEnum {

    SUCCESS(0,"成功"),
    FAILED(1,"失败"),
    ;
    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
